package com.hanson.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.persistence.*;
import java.util.Date;

/**
 * @description: 销售数据
 * @classname: tb_sell_data
 * @author: HansonLee
 * @create: 2024/03/26
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@Accessors(chain = true)
@Entity
@Table(name = "tb_sell_data")
public class TbSellData {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Long id;

    @Column(name ="order_id")
    private String orderId;

    @Column(name ="product_id")
    private String productId;

    @Column(name ="description",length = 100)
    private String description;

    @Column(name ="quantity",columnDefinition ="int")
    private Integer quantity;

    @Column(name ="sell_date")
    private Date sellDate;

    @Column(name ="string_date")
    private String stringDate;

    @Column(name ="sell_price")
    private String sellPrice;

    @Column(name ="create_time")
    private Date createTime;

    @Column(name ="update_time")
    private Date updateTime;

    @Column(name ="create_by")
    private String createBy;

    @Column(name ="update_by")
    private String updateBy;

}
